﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Cache.aspx.cs" Inherits="UI_Cache" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Cache Processing</title>
    <link href="../images/style.css" rel="Stylesheet" />

    <script src="../js/introbox.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
    <style type="text/css">
        .style1
        {
            width: 50px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="1" width="100%" class="tableBorder" cellspacing="0" style="border-collapse: collapse;"
            bgcolor="#ffffff" bordercolor="#cccccc">
            <tr align="center" valign="middle">
                <th height="22" colspan="3">
                    CACHE 管 理
                </th>
            </tr>
            <tr>
                <td width="80px">
                    缓存数目
                </td>
                <td>
                    <asp:Label runat="server" ID="lblcachecount"></asp:Label>
                </td>
            </tr>
            <tr>
                <td width="80px">
                    重启网站
                </td>
                <td>
                    <asp:Button runat="server" ID="btnunload" Text="确定重启网站" CssClass="btn" OnClick="btnUnload_Click" />
                </td>
            </tr>
            <tr>
                <td width="80px">
                    清空缓存
                </td>
                <td>
                    <asp:Button runat="server" ID="btnClear" Text="确定清空缓存" CssClass="btn" OnClick="btnClear_Click" />
                </td>
            </tr>
            <%if (FTchina.basic.IsHtml)
              {%>
            <tr>
                <td width="80px">
                    重建首页
                </td>
                <td>
                    <asp:Button runat="server" ID="btnrebuildhome" CssClass="btn" Text="重建网站首页" OnClick="btnrebuildhome_Click" />
                </td>
            </tr>
            <tr>
                <td width="80px">
                    重建分类页面
                </td>
                <td>
                    <asp:Button runat="server" ID="btnrebuildlist" CssClass="btn" Text="重建分类页面" OnClick="btnrebuildlist_Click" />
                </td>
            </tr>
            <%} %>
            <tr>
                <td>
                </td>
                <td>
                    当前主机ASP.NET进程占用内存:<asp:Label runat="server" ID="lblnc"></asp:Label>
                </td>
            </tr>
        </table>
        <table border="1" id="tb" width="100%" class="tableBorder" cellspacing="0" style="border-collapse: collapse;"
            bgcolor="#ffffff" bordercolor="#cccccc">
            <tr align="center" valign="middle">
                <th height="22" colspan="3">
                    CACHE 详 细 内 容
                </th>
            </tr>
            <tr>
                <td>
                    Key
                </td>
                <td>
                    Value(前50字符)
                </td>
            </tr>
            <asp:Literal runat="server" ID="litlist" EnableViewState="false"></asp:Literal>
        </table>
    </div>
    
    </form>
        <script type="text/javascript">

        var csseven = { 'background-color': 'f4f5eb' };
        var cssodd = { 'background-color': '' };
        var csshover = { 'background-color': 'CCFF99' };
        $('#tb  tr:even').css(csseven);
        $("#tb   tr:even").hover(
          function() { $(this).css(csshover); },
          function() { $(this).css(csseven); }
          );
        $("#tb   tr:odd").hover(
          function() { $(this).css(csshover); },
          function() { $(this).css(cssodd); }
          );
    </script>

</body>
</html>
